﻿@model BBICMS.Model.ViewModel.Back.LocalPasswordVM
@{
    ViewBag.Title = "修改密码";
    ViewBag.PageTitle = ViewBag.Title + "_安全设置";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

@section leftNav{
    @Html.Partial("_NavForSecurity")
}




<div class="toolbar">
    <a href="#" class="showmenu"><i class="glyphicon glyphicon-th-list"></i></a>
    <ol class="breadcrumb">
        <li><a href="@Url.Action("Index","Home")"><i class="glyphicon glyphicon-home"></i> 控制面板</a></li>
        <li><a href="#">安全设置</a></li>
        <li class="active">@ViewBag.Title</li>
    </ol>
</div>
<div class="main-content">
    <div class="panel panel-default">
        <div class="panel-heading">
            <i class="glyphicon glyphicon-lock"></i> @ViewBag.Title
        </div>
        <div class="panel-body">
            <div class="well well-sm">
                当前登录帐号: <strong>@User.Identity.Name</strong>。
            </div>

            @if (ViewBag.HasLocalPassword)
            {
                @Html.Partial("_ChangePasswordPartial")
            }
            else
            {
                @Html.Partial("_SetPasswordPartial")
            }


            @if (ViewBag.StatusMessage != null && ViewBag.StatusMessage.Length > 0)
            {
                <div class="alert alert-success">
                    @ViewBag.StatusMessage
                </div>
            }
        </div>
    </div>


</div>


@section footer {
    <script>
        $(function () {
            $('.mainmenu>li:nth(3)').addClass('nav-open').find('.submenu>li:nth(1)>a').addClass('active');
        });
    </script>

}